#include <iostream>
#include "../cpp-httplib-master/httplib.h"

#define CONTACTS_HOST "1.12.51.69"
#define CONTACTS_PORT 8082

int main(){
    httplib::Client cli(CONTACTS_HOST, CONTACTS_PORT);
    
    httplib::Result res1 = cli.Post("/test-post");
    if(res1->status == 200){
        std::cout << "调用 post 成功" << std::endl;
    }
    httplib::Result res2 = cli.Get("/test-get");
    if(res2->status == 200){
        std::cout << "调用 get 成功" << std::endl;
    }

    return 0;
} 